package com.ys.web.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ys.web.remotemodel.ContractInfo;
import com.ys.web.remotemodel.CustomerInfo;
import com.ys.web.service.BusinessSupportService;
import com.ys.web.ws.service.ShowInfoByCompanyService;

/**
 * 业务支持
 * @author wdj
 *
 */
@Service("businessSupportService")
@Transactional
public class BusinessSupportServiceImpl implements BusinessSupportService {

	@Resource
	private ShowInfoByCompanyService showInfoByCompanyService;
	

	/**
	 * 通过易数宝后台获取付费客户信息
	 * @return 所有客户信息
	 */
	@Override
	public List<CustomerInfo> getALLCustomerInfoByJeecg() {				
		List<CustomerInfo> list = showInfoByCompanyService.getShowInfoByCompany();
							
		return list;
	}

	/***
	 * 根据用户id查找合同相关信息
	 * @param userId 用户id
	 * @return
	 */
	@Override
	public List<ContractInfo> getContractInfoByUserId(String userId) {
		List<ContractInfo> list = showInfoByCompanyService.getContractInfoByUserId(userId);
						
		return list;		
	}

	
}
